import React, { Component } from 'react'
import Routerlink from './router/Routerlink'
import Routerview from './router/Routerview'
import routerConfig from './router/routerConfig'
import {BrowserRouter} from 'react-router-dom'
import store from './store/index'
import { Provider } from 'react-redux'

export class App extends Component {
  render() {
    return (
      <Provider store={store}>
        <BrowserRouter>
          <div>
            <Routerlink routerConfig={routerConfig}></Routerlink>
          </div>
          <div>
            <Routerview routerConfig={routerConfig}></Routerview>
          </div>
        </BrowserRouter>
      </Provider>  
    )
  }
}

export default App